package javaseof10day.day6.am;

import java.io.FileReader;
import java.io.IOException;

public class FileReaderDemo {

	public static void main(String[] args) throws IOException {

		FileReader file = null;

		// 创建FileReader并指定要读取的readme.text文件内容
		file = new FileReader("src/readme.txt");
		System.out.println("src/readme.txt文件内容");
		int n = 0;
		while ((n = file.read()) != -1) {
			System.out.println((char) n);
		}

		file.close();

	}

}
